package com.demo.user.remote;

import com.demo.common.base.constant.SysServiceConstant;
import com.demo.common.base.pojo.JsonRes;
import com.demo.common.feign.config.FeignHeaderConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 用户菜单接口
 *
 * @author DayDayUp
 * create on 2023-08-16
 **/
@FeignClient(contextId = "remoteAuthUserMenuService", value = SysServiceConstant.DEMO_USER_API,configuration = FeignHeaderConfiguration.class)
public interface RemoteAuthUserMenuService {

    @GetMapping("/authUserMenu/getButtonListByUsername")
    JsonRes<List<String>> getButtonListByUsername(@RequestParam("username") String username);
}
